package com.pajk.user.service.credit;

public enum CreditStatusEnum {
    //没有万里通账户状态为0,有万里通账户但是没有同步状态为1,万里通状态同步为9
    noWlt(0), hasWltNoSync(1), Synchronized(9);
    
    private int value = 0;
    
    private CreditStatusEnum(int value){
        this.value = value;
    }
    
    public static CreditStatusEnum valueOf(int value){
        switch(value){
            case 0:
                return noWlt;
            case 1:
                return hasWltNoSync;
            case 9:
                return Synchronized;
            default:
                return null;
        }
    }
    
    public int value() {
        return this.value;
    }
    
}
